#ifndef PIC_H_
#define PIC_H_

#include <types.h>

#define PIC_MASTER_CMD 0x20
#define PIC_MASTER_DATA 0x21
#define PIC_SLAVE_CMD 0xA0
#define PIC_SLAVE_DATA 0xA1

#define PIC_ICW1 0x11
#define PIC_ICW4 0x01
#define PIC_EOI 0x20

extern dword g_irqbase;

int init_pic(void);
void pic_remap(byte newint);
void pic_disable(void);
void pic_enable(void);

#endif /*PIC_H_*/
